interface PersonInterface<T, U> {
    name: string,
    age: number,
    otherInfo: T,
    jobInfo: U
}

interface JobInfo {
    jobName: string
}


let p: PersonInterface<string, JobInfo> = {
    name: '11',
    age: 20,
    otherInfo: 'xxxx',
    jobInfo: {
        jobName: 'xxxx'
    }
}


let p2: PersonInterface<number, JobInfo> = {
    name: '11',
    age: 20,
    otherInfo: 1111,
        jobInfo: {
        jobName: 'xxxx'
    }
}

